<?php
require_once("vcl/vcl.inc.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class refresher extends Page
{
       function refresherJSLoad($sender, $params)
       {

       ?>
       //Add your javascript code here
var veh = '<?php $oki2 = $_GET['veh']; echo $oki2; ?>';
//setTimeout("window.opener.reloadFrame(veh)", 2000);
window.opener.reloadFrame(veh);
//setTimeout("closeIt()", 2000);
if(navigator.appName=="Microsoft Internet Explorer") {
this.focus();self.opener = this;self.close(); }
else { window.open('','_parent',''); window.close(); }
       <?php

       }

}

global $application;

global $refresher;

//Creates the form
$refresher=new refresher($application);

//Read from resource file
$refresher->loadResource(__FILE__);

//Shows the form
$refresher->show();

?>